.PHONY: build

export GOPROXY=http://goproxy.cn
export GOPRIVATE=gitlab.danke.life


GOLANG_VERSION = 1.12

NOW = $(shell date '+%Y%m%d%H%M%S')
BIN_NAME = server

#可以把所有要打包的东西都复制进入./dist/${BIN_NAME}/
#视情况而定
build:
	@echo "-> Check Dependency..."
	@go mod download

	@echo "-> Building the binary..."
	@go build  -o ./dist/${BIN_NAME} ./main.go ./http.go
	@echo "You can now use ./dist/${BIN_NAME}"

install:
	@echo "-> Check Dependency..."
	@go mod download

.PHONY: clean
clean:
	rm -rf dist/*